﻿global using System.Text;

namespace ALiOssNet6;
internal class OssConfig
{
    public const string SectionName = "Oss";
    public string EndPoint { get; set; } = default!;
    public string Key { get; set; } = default!;
    public string AccessKeyId { get; set; } = default!;

    private byte[]? _KeyBytes = null;
    public byte[] KeyBytes
    {
        get
        {
            if (_KeyBytes == null)
                _KeyBytes = Encoding.UTF8.GetBytes(Key);
            return _KeyBytes;
        }
    }
}
